/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import DAO.*;
import DTO.*;
import java.awt.Desktop;
//import java.util.List;

import java.util.List;
import java.util.ArrayList;
//import java.util.Date;
//import java.util.regex.*;

import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;


//import java.awt.event.*;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
//import java.sql.*;

//import java.awt.Graphics;
//import java.awt.Graphics2D;
//import java.awt.print.PageFormat;
//import java.awt.print.Printable;
//import java.awt.print.PrinterException;
//import java.awt.print.PrinterJob;
//import java.text.MessageFormat;
import java.util.HashMap;
import java.util.Map;

import java.util.logging.Level;
import java.util.logging.Logger;
//import javax.swing.DefaultComboBoxModel;
//import javax.swing.JDialog;
//import javax.swing.JFileChooser;
import javax.swing.JFrame;
//import javax.swing.JTable.PrintMode;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import net.sf.jasperreports.swing.JRViewer;

/**
 *
 * @author Luis Olave 10
 */
public class AprobacionGarantiaWarrant extends javax.swing.JFrame{

    usuarioDTO user;
    garantiasDAO reg = new garantiasDAO();
    garantiaWarrantsDTO aproGaraWarra = new garantiaWarrantsDTO();
    
    /**
     * Creates new form AprobacionGarantiaWarrant
     */
    public AprobacionGarantiaWarrant(usuarioDTO user) {
        this.user = user;
        initComponents();
        cargarItemsComboBoxEstadoGarantia();
        pnlIngreseRutGarante1.setVisible(false);
        pnlIngreseRutGarante.setVisible(false);
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
    }
    
    private void cargarItemsComboBoxEstadoGarantia() {
        List<estadoGarantiaDTO> ListaGarantia = CCEstadoGarantia.listarItemEstado();
        if (ListaGarantia != null) {
            int size = ListaGarantia.size();
            for (int i = 0; i < size; i++) {
                this.cmbEstadoAprobWarra.addItem(ListaGarantia.get(i));
            }
        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        pnlDatosPersoGara = new javax.swing.JPanel();
        jPanel10 = new javax.swing.JPanel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        txtNombreWarra = new javax.swing.JTextField();
        txtApellMatWarra = new javax.swing.JTextField();
        txtApellPatWarra = new javax.swing.JTextField();
        txtRutWarra = new javax.swing.JTextField();
        btnMenuWarra = new javax.swing.JButton();
        pnlIngreseRutGarante = new javax.swing.JPanel();
        jLabel30 = new javax.swing.JLabel();
        txtFolioWarra = new javax.swing.JTextField();
        btnBuscarFolioWarra = new javax.swing.JButton();
        pnlIngreseRutGarante1 = new javax.swing.JPanel();
        jLabel31 = new javax.swing.JLabel();
        txtDUNWarra = new javax.swing.JTextField();
        btnBuscarDUNWarra = new javax.swing.JButton();
        chkFolioWarra = new javax.swing.JCheckBox();
        chkDUNWarra = new javax.swing.JCheckBox();
        jPanel3 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        pnlCreacionGaraWarra = new javax.swing.JPanel();
        jPanel14 = new javax.swing.JPanel();
        lblArchivo = new javax.swing.JLabel();
        btnExaminarWarra = new javax.swing.JButton();
        jPanel11 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        txtTipoProdWarra = new javax.swing.JTextField();
        txtSucursalWarra = new javax.swing.JTextField();
        txtFechCreaWarra = new javax.swing.JTextField();
        txtFechUltTasWarrant = new javax.swing.JTextField();
        txtMonedaWarra = new javax.swing.JTextField();
        txtFechUltDebWarra = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        txtMontoInicialWarrant = new javax.swing.JTextField();
        jPanel12 = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        txtProductoWarra = new javax.swing.JTextField();
        txtFechUltRevWarra = new javax.swing.JTextField();
        txtFechUltCredWarra = new javax.swing.JTextField();
        txtFechExtWarra = new javax.swing.JTextField();
        txtGtiaWarra = new javax.swing.JTextField();
        jPanel2 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        pnlDescripGarantia = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        txtDescripcionWarra = new javax.swing.JTextArea();
        lblDescripcion = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        pnlEstadoGarantia1 = new javax.swing.JPanel();
        lblEstrado1 = new javax.swing.JLabel();
        cmbEstadoAprobWarra = new javax.swing.JComboBox();
        pnlDescripGarantia2 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        txtOtroComentario1AprobWarr1 = new javax.swing.JTextArea();
        lblDescripcion2 = new javax.swing.JLabel();
        btnAceptar = new javax.swing.JButton();
        btnMenuPWarra = new javax.swing.JButton();
        jPanel13 = new javax.swing.JPanel();
        txtEstadoActualWarrant = new javax.swing.JTextField();
        jPanel7 = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();
        jPanel15 = new javax.swing.JPanel();
        txtBuscarDunImprimir = new javax.swing.JTextField();
        btnBuscarDunImprimir = new javax.swing.JButton();
        btnImprimirWarrant = new javax.swing.JButton();
        jPanel16 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tbSalidaGarantiaWarrant = new javax.swing.JTable();
        btnMenuPrincipalWarrant = new javax.swing.JButton();
        btnExcelWarra = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("APROBACIÓN GARANTÍA WARRANT");
        setResizable(false);

        jLabel1.setFont(new java.awt.Font("Century Gothic", 1, 18)); // NOI18N
        jLabel1.setText("APROBACIÓN GARANTÍA WARRANT");

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE/logo.JPG"))); // NOI18N

        jTabbedPane1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N

        pnlDatosPersoGara.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DATOS PERSONALES GARANTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel36.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel36.setText("RUT");

        jLabel37.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel37.setText("APELLIDO PATERNO");

        jLabel39.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel39.setText("APELLIDO MATERNO");

        jLabel40.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel40.setText("NOMBRE");

        txtNombreWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtNombreWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNombreWarra.setEnabled(false);

        txtApellMatWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtApellMatWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellMatWarra.setEnabled(false);

        txtApellPatWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtApellPatWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellPatWarra.setEnabled(false);

        txtRutWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtRutWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtRutWarra.setEnabled(false);

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel37)
                    .addComponent(jLabel36))
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtRutWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtApellPatWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 73, Short.MAX_VALUE)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel39)
                    .addComponent(jLabel40))
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtNombreWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtApellMatWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(196, 196, 196))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(txtRutWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel40)
                    .addComponent(txtNombreWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel37)
                    .addComponent(txtApellPatWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel39)
                    .addComponent(txtApellMatWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout pnlDatosPersoGaraLayout = new javax.swing.GroupLayout(pnlDatosPersoGara);
        pnlDatosPersoGara.setLayout(pnlDatosPersoGaraLayout);
        pnlDatosPersoGaraLayout.setHorizontalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosPersoGaraLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        pnlDatosPersoGaraLayout.setVerticalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDatosPersoGaraLayout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        btnMenuWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuWarra.setText("MENÚ PRINCIPAL");
        btnMenuWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuWarraActionPerformed(evt);
            }
        });

        pnlIngreseRutGarante.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE N° FOLIO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel30.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel30.setText("N° FOLIO");

        txtFolioWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtFolioWarraActionPerformed(evt);
            }
        });

        btnBuscarFolioWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarFolioWarra.setText("BUSCAR");
        btnBuscarFolioWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarFolioWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlIngreseRutGaranteLayout = new javax.swing.GroupLayout(pnlIngreseRutGarante);
        pnlIngreseRutGarante.setLayout(pnlIngreseRutGaranteLayout);
        pnlIngreseRutGaranteLayout.setHorizontalGroup(
            pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGaranteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel30)
                .addGap(18, 18, 18)
                .addGroup(pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtFolioWarra)
                    .addComponent(btnBuscarFolioWarra, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(52, Short.MAX_VALUE))
        );
        pnlIngreseRutGaranteLayout.setVerticalGroup(
            pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlIngreseRutGaranteLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel30)
                    .addComponent(txtFolioWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarFolioWarra)
                .addContainerGap())
        );

        pnlIngreseRutGarante1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE CÓDIGO (D.U.N 14)", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel31.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel31.setText("CÓDIGO");

        btnBuscarDUNWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarDUNWarra.setText("BUSCAR");
        btnBuscarDUNWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarDUNWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlIngreseRutGarante1Layout = new javax.swing.GroupLayout(pnlIngreseRutGarante1);
        pnlIngreseRutGarante1.setLayout(pnlIngreseRutGarante1Layout);
        pnlIngreseRutGarante1Layout.setHorizontalGroup(
            pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel31)
                .addGap(18, 18, 18)
                .addGroup(pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtDUNWarra)
                    .addComponent(btnBuscarDUNWarra, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(52, Short.MAX_VALUE))
        );
        pnlIngreseRutGarante1Layout.setVerticalGroup(
            pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlIngreseRutGarante1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(txtDUNWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarDUNWarra)
                .addContainerGap())
        );

        buttonGroup1.add(chkFolioWarra);
        chkFolioWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkFolioWarra.setText("BUSCAR POR N° FOLIO");
        chkFolioWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkFolioWarraActionPerformed(evt);
            }
        });

        buttonGroup1.add(chkDUNWarra);
        chkDUNWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkDUNWarra.setText("BUSCAR POR CÓDIGO (D.U.N 14)");
        chkDUNWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkDUNWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnMenuWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addGap(116, 116, 116)
                                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(pnlIngreseRutGarante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(chkFolioWarra))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(chkDUNWarra)
                                    .addComponent(pnlIngreseRutGarante1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(chkFolioWarra, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(chkDUNWarra, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlIngreseRutGarante1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlIngreseRutGarante, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 172, Short.MAX_VALUE)
                .addComponent(btnMenuWarra)
                .addGap(63, 63, 63))
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 807, Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGap(0, 6, Short.MAX_VALUE)
                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 6, Short.MAX_VALUE)))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 536, Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGap(0, 12, Short.MAX_VALUE)
                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 13, Short.MAX_VALUE)))
        );

        jTabbedPane1.addTab("INFO. GARANTE", jPanel1);

        pnlCreacionGaraWarra.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "CONFIRMACIÓN DATOS GARANTÍA WARRANT", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ADJUNTAR ARCHIVO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblArchivo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblArchivo.setText("VER");

        btnExaminarWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnExaminarWarra.setText("VER ARCHIVO");
        btnExaminarWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExaminarWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addGap(67, 67, 67)
                .addComponent(lblArchivo)
                .addGap(18, 18, 18)
                .addComponent(btnExaminarWarra)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblArchivo)
                    .addComponent(btnExaminarWarra))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel4.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel4.setText("SUCURSAL");

        jLabel5.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel5.setText("TIPO PRODUCTO");

        jLabel6.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel6.setText("FECHA CREACIÓN");

        jLabel7.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel7.setText("FECHA ÚLT. DEBITO");

        jLabel14.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel14.setText("FECHA ÚLT. TASACIÓN");

        jLabel13.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel13.setText("MONEDA");

        txtTipoProdWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtTipoProdWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtTipoProdWarra.setEnabled(false);

        txtSucursalWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtSucursalWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtSucursalWarra.setEnabled(false);

        txtFechCreaWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtFechCreaWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechCreaWarra.setEnabled(false);

        txtFechUltTasWarrant.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltTasWarrant.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltTasWarrant.setEnabled(false);

        txtMonedaWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtMonedaWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtMonedaWarra.setEnabled(false);

        txtFechUltDebWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltDebWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltDebWarra.setEnabled(false);

        jLabel16.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel16.setText("MONTO INICIAL");

        txtMontoInicialWarrant.setBackground(new java.awt.Color(255, 255, 102));
        txtMontoInicialWarrant.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtMontoInicialWarrant.setEnabled(false);

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel14)
                            .addComponent(jLabel13)
                            .addComponent(jLabel7)
                            .addComponent(jLabel6)
                            .addComponent(jLabel5)
                            .addComponent(jLabel4))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtSucursalWarra)
                            .addComponent(txtTipoProdWarra)
                            .addComponent(txtFechCreaWarra, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                            .addComponent(txtFechUltTasWarrant)
                            .addComponent(txtMonedaWarra)
                            .addComponent(txtFechUltDebWarra)))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addComponent(jLabel16)
                        .addGap(55, 55, 55)
                        .addComponent(txtMontoInicialWarrant)))
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(txtSucursalWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(txtTipoProdWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(txtFechCreaWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(txtFechUltDebWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(txtMonedaWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(txtFechUltTasWarrant, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtMontoInicialWarrant, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel16))
                .addContainerGap(20, Short.MAX_VALUE))
        );

        jLabel8.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel8.setText("TIPO GARANTÍA");

        jLabel9.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel9.setText("INGRESE PRODUCTO");

        jLabel10.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel10.setText("FECHA EXTINCIÓN");

        jLabel11.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel11.setText("FECHA ÚLT. REVALUO");

        jLabel12.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel12.setText("FECHA ÚLT. CRÉDITO");

        txtProductoWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtProductoWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtProductoWarra.setEnabled(false);

        txtFechUltRevWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltRevWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltRevWarra.setEnabled(false);

        txtFechUltCredWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltCredWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltCredWarra.setEnabled(false);

        txtFechExtWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtFechExtWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechExtWarra.setEnabled(false);

        txtGtiaWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtGtiaWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtGtiaWarra.setEnabled(false);

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel9)
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel11)
                            .addComponent(jLabel10)
                            .addComponent(jLabel12)
                            .addComponent(jLabel8))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtProductoWarra, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                            .addComponent(txtFechUltCredWarra)
                            .addComponent(txtFechUltRevWarra)
                            .addComponent(txtFechExtWarra)
                            .addComponent(txtGtiaWarra))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(txtGtiaWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(txtProductoWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(txtFechExtWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(txtFechUltRevWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(txtFechUltCredWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(14, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout pnlCreacionGaraWarraLayout = new javax.swing.GroupLayout(pnlCreacionGaraWarra);
        pnlCreacionGaraWarra.setLayout(pnlCreacionGaraWarraLayout);
        pnlCreacionGaraWarraLayout.setHorizontalGroup(
            pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCreacionGaraWarraLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        pnlCreacionGaraWarraLayout.setVerticalGroup(
            pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCreacionGaraWarraLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlCreacionGaraWarraLayout.createSequentialGroup()
                        .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(0, 127, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlCreacionGaraWarra, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlCreacionGaraWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(131, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 807, Short.MAX_VALUE)
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGap(0, 55, Short.MAX_VALUE)
                    .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 54, Short.MAX_VALUE)))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 536, Short.MAX_VALUE)
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGap(0, 4, Short.MAX_VALUE)
                    .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 4, Short.MAX_VALUE)))
        );

        jTabbedPane1.addTab("INFORMACIÓN GARANTÍA", jPanel3);

        pnlDescripGarantia.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DESCRIPCIÓN GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtDescripcionWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtDescripcionWarra.setColumns(20);
        txtDescripcionWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtDescripcionWarra.setRows(5);
        txtDescripcionWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtDescripcionWarra.setEnabled(false);
        jScrollPane4.setViewportView(txtDescripcionWarra);

        lblDescripcion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDescripcion.setText("DESCRIPCIÓN");

        javax.swing.GroupLayout pnlDescripGarantiaLayout = new javax.swing.GroupLayout(pnlDescripGarantia);
        pnlDescripGarantia.setLayout(pnlDescripGarantiaLayout);
        pnlDescripGarantiaLayout.setHorizontalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDescripGarantiaLayout.createSequentialGroup()
                .addGap(70, 70, 70)
                .addComponent(lblDescripcion)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 582, Short.MAX_VALUE)
                .addContainerGap())
        );
        pnlDescripGarantiaLayout.setVerticalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDescripGarantiaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(367, 367, 367))
        );

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.PREFERRED_SIZE, 359, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(97, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 807, Short.MAX_VALUE)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGap(0, 8, Short.MAX_VALUE)
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 8, Short.MAX_VALUE)))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 536, Short.MAX_VALUE)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGap(0, 34, Short.MAX_VALUE)
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 35, Short.MAX_VALUE)))
        );

        jTabbedPane1.addTab("DESCRIP. GARANTÍA", jPanel2);

        pnlEstadoGarantia1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ESTADO GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblEstrado1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblEstrado1.setText("ESTADO");

        cmbEstadoAprobWarra.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "(SELECCIONE)" }));

        javax.swing.GroupLayout pnlEstadoGarantia1Layout = new javax.swing.GroupLayout(pnlEstadoGarantia1);
        pnlEstadoGarantia1.setLayout(pnlEstadoGarantia1Layout);
        pnlEstadoGarantia1Layout.setHorizontalGroup(
            pnlEstadoGarantia1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEstadoGarantia1Layout.createSequentialGroup()
                .addContainerGap(87, Short.MAX_VALUE)
                .addComponent(lblEstrado1)
                .addGap(18, 18, 18)
                .addComponent(cmbEstadoAprobWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(512, 512, 512))
        );
        pnlEstadoGarantia1Layout.setVerticalGroup(
            pnlEstadoGarantia1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlEstadoGarantia1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlEstadoGarantia1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEstrado1)
                    .addComponent(cmbEstadoAprobWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(78, 78, 78))
        );

        pnlDescripGarantia2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DESCRIPCIÓN GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtOtroComentario1AprobWarr1.setColumns(20);
        txtOtroComentario1AprobWarr1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtOtroComentario1AprobWarr1.setRows(5);
        txtOtroComentario1AprobWarr1.setToolTipText("");
        jScrollPane6.setViewportView(txtOtroComentario1AprobWarr1);

        lblDescripcion2.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDescripcion2.setText("COMENTARIO");

        javax.swing.GroupLayout pnlDescripGarantia2Layout = new javax.swing.GroupLayout(pnlDescripGarantia2);
        pnlDescripGarantia2.setLayout(pnlDescripGarantia2Layout);
        pnlDescripGarantia2Layout.setHorizontalGroup(
            pnlDescripGarantia2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDescripGarantia2Layout.createSequentialGroup()
                .addContainerGap(54, Short.MAX_VALUE)
                .addComponent(lblDescripcion2)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 614, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        pnlDescripGarantia2Layout.setVerticalGroup(
            pnlDescripGarantia2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDescripGarantia2Layout.createSequentialGroup()
                .addContainerGap(28, Short.MAX_VALUE)
                .addGroup(pnlDescripGarantia2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion2)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        btnAceptar.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnAceptar.setText("ACEPTAR");
        btnAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAceptarActionPerformed(evt);
            }
        });

        btnMenuPWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuPWarra.setText("MENÚ PRINCIPAL >>");
        btnMenuPWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPWarraActionPerformed(evt);
            }
        });

        jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ESTADO ACTUAL", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtEstadoActualWarrant.setEditable(false);

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                .addContainerGap(38, Short.MAX_VALUE)
                .addComponent(txtEstadoActualWarrant, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(38, 38, 38))
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(txtEstadoActualWarrant, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(pnlDescripGarantia2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(btnAceptar)
                        .addGap(203, 203, 203)
                        .addComponent(btnMenuPWarra)
                        .addGap(24, 24, 24))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                                .addGap(0, 0, Short.MAX_VALUE)
                                .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(pnlEstadoGarantia1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addContainerGap())))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnAceptar)
                        .addGap(63, 63, 63))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(pnlEstadoGarantia1, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(33, 33, 33)
                        .addComponent(pnlDescripGarantia2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 99, Short.MAX_VALUE)
                        .addComponent(btnMenuPWarra)
                        .addGap(72, 72, 72))))
        );

        jTabbedPane1.addTab("SÍ/NO", jPanel4);

        jPanel15.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESAR D.U.N. 14", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarDunImprimir.setText("BUSCAR");
        btnBuscarDunImprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarDunImprimirActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addGap(47, 47, 47)
                        .addComponent(txtBuscarDunImprimir, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addGap(69, 69, 69)
                        .addComponent(btnBuscarDunImprimir)))
                .addContainerGap(47, Short.MAX_VALUE))
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(txtBuscarDunImprimir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnBuscarDunImprimir)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        btnImprimirWarrant.setText("IMPRIMIR");
        btnImprimirWarrant.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImprimirWarrantActionPerformed(evt);
            }
        });

        jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ÁREA DE IMPRESIÓN", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        tbSalidaGarantiaWarrant.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tbSalidaGarantiaWarrant.setEnabled(false);
        tbSalidaGarantiaWarrant.setRowHeight(20);
        jScrollPane1.setViewportView(tbSalidaGarantiaWarrant);

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 679, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)
                .addContainerGap())
        );

        btnMenuPrincipalWarrant.setText("MENÚ PRINCIPAL");
        btnMenuPrincipalWarrant.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincipalWarrantActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addGap(0, 38, Short.MAX_VALUE)
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(38, 38, 38))
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGap(271, 271, 271)
                .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGap(343, 343, 343)
                .addComponent(btnImprimirWarrant)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnMenuPrincipalWarrant)
                .addGap(63, 63, 63))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnImprimirWarrant)
                    .addComponent(btnMenuPrincipalWarrant))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(13, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("IMPRIMIR", jPanel7);

        btnExcelWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnExcelWarra.setText("EXPORTAR A EXCEL");
        btnExcelWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExcelWarraActionPerformed(evt);
            }
        });

        jLabel3.setText("MENÚ PRINCIPAL\\APROBACIÓN GARANTÍA WARRANT");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addGap(118, 118, 118)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnExcelWarra)))
                .addContainerGap())
            .addComponent(jTabbedPane1)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel3))
                    .addComponent(jLabel2)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(30, 30, 30)
                        .addComponent(btnExcelWarra)))
                .addGap(18, 18, 18)
                .addComponent(jTabbedPane1))
        );

        setSize(new java.awt.Dimension(828, 707));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void btnExaminarWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExaminarWarraActionPerformed
        String archivo = aproGaraWarra.getAdjuntar_warra();
           if(!archivo.equals("")){  
         File file = new File(archivo);
        try {
            Desktop.getDesktop().open(file);
        } catch (IOException ex) {
            javax.swing.JOptionPane.showMessageDialog(this, "Problema al abrir archivo");
        }
           }else{
           javax.swing.JOptionPane.showMessageDialog(this, "No tiene archivo adjunto");
           } 
    }//GEN-LAST:event_btnExaminarWarraActionPerformed

    private void btnMenuWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuWarraActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        AprobacionGarantiaWarrant.this.dispose();
    }//GEN-LAST:event_btnMenuWarraActionPerformed

    private void btnBuscarFolioWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarFolioWarraActionPerformed
        this.txtDUNWarra.setText("");
        try
        {
            int folio=Integer.parseInt(this.txtFolioWarra.getText().trim());
        aproGaraWarra = reg.buscarPorFolioWarra(folio);
            if (aproGaraWarra.getEstado_warra().equals("Eliminada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Eliminada");
                this.txtFolioWarra.setText("");
            limpiar();
            this.btnAceptar.setVisible(false);
            }
        else
        {
        if (!this.txtFolioWarra.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtFolioWarra.setText("");
            limpiar();
            this.btnAceptar.setVisible(false);
        }
       else{
           
        
        
        aproGaraWarra = reg.buscarPorFolioWarra(folio);
        
        
        if(aproGaraWarra.getFolio_warra() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Garantia NO ENCONTRADA");
            limpiar();
            this.btnAceptar.setVisible(false);
        }
        else
        {
            if(aproGaraWarra.getEstado_warra().equals("Ingresada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Ingresada");
                this.btnAceptar.setVisible(true);
            }
            else if(aproGaraWarra.getEstado_warra().equals("Aprobada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Aprobada");
                this.btnAceptar.setVisible(false);
            }
            else if(aproGaraWarra.getEstado_warra().equals("Rechazada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Rechazada");
                this.btnAceptar.setVisible(false);
            }
            else if(aproGaraWarra.getEstado_warra().equals("Modificada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Modificada");
                javax.swing.JOptionPane.showMessageDialog(this, "APROBAR O RECHAZAR DE NUEVO");
                this.btnAceptar.setVisible(true);
            }
            
            
                this.txtRutWarra.setText(aproGaraWarra.getRut_garante_warra());
                this.txtApellMatWarra.setText(aproGaraWarra.getApell_materno_warra());
                this.txtApellPatWarra.setText(aproGaraWarra.getApell_paterno_warra());
                this.txtNombreWarra.setText(aproGaraWarra.getNombre_warra());
                this.txtSucursalWarra.setText(aproGaraWarra.getNom_sucursal_warra());
                this.txtTipoProdWarra.setText(aproGaraWarra.getTipo_prod_warra());
                String fechaCrea = new SimpleDateFormat("dd-MM-yyyy").format(aproGaraWarra.getFech_crea_warra().getTime());
                this.txtFechCreaWarra.setText(fechaCrea);
                this.txtFechUltDebWarra.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraWarra.getFech_ult_deb_warra()));
                this.txtMonedaWarra.setText(aproGaraWarra.getNom_moneda_warra());
                this.txtFechUltTasWarrant.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraWarra.getFech_ult_tasa_warra()));
                this.txtTipoProdWarra.setText(aproGaraWarra.getTipo_gara_warra());
                this.txtProductoWarra.setText(aproGaraWarra.getIngre_prod_warra());
                String fechaVen= new SimpleDateFormat("dd-MM-yyyy").format(aproGaraWarra.getFech_exti_warra().getTime());
                this.txtFechExtWarra.setText(fechaVen);
                this.txtFechUltRevWarra.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraWarra.getFech_ult_reval_warra()));
                this.txtFechUltCredWarra.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraWarra.getFech_ult_cred_warra()));
                this.txtGtiaWarra.setText(String.valueOf(aproGaraWarra.getTipo_gara_warra()));
                this.txtMontoInicialWarrant.setText(String.valueOf(aproGaraWarra.getMonto_inicial()));
                this.txtEstadoActualWarrant.setText(aproGaraWarra.getEstado_warra());
                this.txtDescripcionWarra.setText(aproGaraWarra.getDescrip_warra());
                for(int i=0; i<this.cmbEstadoAprobWarra.getItemCount();i++ )
                {
                    if(aproGaraWarra.getEstado_warra().equals("Aprobada"))
                    {
                     int x = i-1;
                     this.cmbEstadoAprobWarra.setSelectedIndex(x);   
                    }

                    else if(aproGaraWarra.getEstado_warra().equals("Rechazada"))
                    {
                    int f = i;
                    this.cmbEstadoAprobWarra.setSelectedIndex(f);
                    }
                } 
                cambio();
        }
        }
        }}catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnBuscarFolioWarraActionPerformed

    private void btnBuscarDUNWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarDUNWarraActionPerformed
        this.txtFolioWarra.setText("");
        try
        {
            aproGaraWarra = reg.buscarPorDUN(this.txtDUNWarra.getText().trim());
        if (aproGaraWarra.getEstado_warra().equals("Eliminada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Eliminada");
                txtDUNWarra.setText("");
            limpiar();
            this.btnAceptar.setVisible(false);
            }
        else
        {
        aproGaraWarra = reg.buscarPorDUN(this.txtDUNWarra.getText().trim());
        if(aproGaraWarra.getFolio_warra() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Garantia NO ENCONTRADA");
            txtDUNWarra.setText("");
            limpiar();
            this.btnAceptar.setVisible(false);
        }
        else
        {
            
            if(aproGaraWarra.getEstado_warra().equals("Ingresada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Ingresada");
                this.btnAceptar.setVisible(true);
            }
            else if(aproGaraWarra.getEstado_warra().equals("Aprobada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Aprobada");
                this.btnAceptar.setVisible(false);
            }
            else if(aproGaraWarra.getEstado_warra().equals("Rechazada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Rechazada");
                this.btnAceptar.setVisible(false);
            }
            else if(aproGaraWarra.getEstado_warra().equals("Modificada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Modificada");
                javax.swing.JOptionPane.showMessageDialog(this, "APROBAR O RECHAZAR DE NUEVO");
                this.btnAceptar.setVisible(true);
            }
            
            
        this.txtRutWarra.setText(aproGaraWarra.getRut_garante_warra());
        this.txtApellMatWarra.setText(aproGaraWarra.getApell_materno_warra());
        this.txtApellPatWarra.setText(aproGaraWarra.getApell_paterno_warra());
        this.txtNombreWarra.setText(aproGaraWarra.getNombre_warra());
        this.txtSucursalWarra.setText(aproGaraWarra.getNom_sucursal_warra());
        this.txtTipoProdWarra.setText(aproGaraWarra.getTipo_prod_warra());
        String fechaCreacion = new SimpleDateFormat("dd-MM-yyyy").format(aproGaraWarra.getFech_crea_warra().getTime());
        this.txtFechCreaWarra.setText(fechaCreacion);
        this.txtFechUltDebWarra.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraWarra.getFech_ult_deb_warra()));
        this.txtMonedaWarra.setText(aproGaraWarra.getNom_moneda_warra());
        this.txtFechUltTasWarrant.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraWarra.getFech_ult_tasa_warra()));
        this.txtTipoProdWarra.setText(aproGaraWarra.getTipo_gara_warra());
        this.txtProductoWarra.setText(aproGaraWarra.getIngre_prod_warra());
        String fechaVen = new SimpleDateFormat("dd-MM-yyyy").format(aproGaraWarra.getFech_exti_warra().getTime());
        this.txtFechExtWarra.setText(fechaVen);
        this.txtFechUltRevWarra.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraWarra.getFech_ult_reval_warra()));
        this.txtFechUltCredWarra.setText(new SimpleDateFormat("dd-MM-yyyy").format(aproGaraWarra.getFech_ult_cred_warra()));
        this.txtGtiaWarra.setText(String.valueOf(aproGaraWarra.getTipo_gara_warra()));
        this.txtMontoInicialWarrant.setText(String.valueOf(aproGaraWarra.getMonto_inicial()));
        this.txtEstadoActualWarrant.setText(aproGaraWarra.getEstado_warra());
        this.txtDescripcionWarra.setText(aproGaraWarra.getDescrip_warra());
        for(int i=0; i<this.cmbEstadoAprobWarra.getItemCount();i++ )
                {
                    if(aproGaraWarra.getEstado_warra().equals("Aprobada"))
                    {
                     int x = i-1;
                     this.cmbEstadoAprobWarra.setSelectedIndex(x);   
                    }

                    else if(aproGaraWarra.getEstado_warra().equals("Rechazada"))
                    {
                    int f = i;
                    this.cmbEstadoAprobWarra.setSelectedIndex(f);
                    }
                }   
        cambio();
        }
        }}catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnBuscarDUNWarraActionPerformed

    private void btnAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAceptarActionPerformed
        aproGaraWarra.setEstado_warra(this.cmbEstadoAprobWarra.getSelectedItem().toString());
        aproGaraWarra.setComent_apro_warra(this.txtOtroComentario1AprobWarr1.getText());
        int respuesta = 5;
        if(aproGaraWarra.getEstado_warra().equals("Aprobada"))
        {
            respuesta = javax.swing.JOptionPane.showConfirmDialog(null, "Esta seguro de aprobar esta garantia?", "Aprobacion", JOptionPane.OK_CANCEL_OPTION);
        }
        if(aproGaraWarra.getEstado_warra().equals("Rechazada"))
        {
            respuesta = javax.swing.JOptionPane.showConfirmDialog(null, "Esta seguro de rechazar esta garantia?", "Rechazar", JOptionPane.OK_CANCEL_OPTION);
        }
        
        if(respuesta == 0)
        {
            reg.estadoGarantiaWarrant(aproGaraWarra, user);
            javax.swing.JOptionPane.showMessageDialog(this, "Aprobacion realizada correctamente ");
            MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
            venMenuPrincipal.setVisible(true);
            AprobacionGarantiaWarrant.this.dispose();
        }              
        else
        {
            
        }
        
    }//GEN-LAST:event_btnAceptarActionPerformed

    private void chkFolioWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkFolioWarraActionPerformed
       if(this.chkFolioWarra.isSelected())
       {
           pnlIngreseRutGarante.setVisible(true);
           pnlIngreseRutGarante1.setVisible(false);
       }else{
           pnlIngreseRutGarante.setVisible(false);
       }
    }//GEN-LAST:event_chkFolioWarraActionPerformed

    private void chkDUNWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkDUNWarraActionPerformed
        if(this.chkDUNWarra.isSelected())
        {
            pnlIngreseRutGarante1.setVisible(true);
            pnlIngreseRutGarante.setVisible(false);
        }else{
            pnlIngreseRutGarante1.setVisible(false);
        }
    }//GEN-LAST:event_chkDUNWarraActionPerformed

    private void btnMenuPWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPWarraActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        AprobacionGarantiaWarrant.this.dispose();
    }//GEN-LAST:event_btnMenuPWarraActionPerformed

    private void btnExcelWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExcelWarraActionPerformed
        if(!this.txtFolioWarra.getText().equals("")){
        int folio = Integer.parseInt(this.txtFolioWarra.getText().trim());
        reg.exportarGarantiaWarraFolio(folio);
        javax.swing.JOptionPane.showMessageDialog(this, "Exportación realizada con exito");
        File file = new File("C:/export_aprobacion_garantia_warrant.csv");
        try {
            Desktop.getDesktop().open(file);
        } catch (IOException ex) {
            Logger.getLogger(IngresoGarante.class.getName()).log(Level.SEVERE, null, ex);
        }
        }
        if(!this.txtDUNWarra.getText().equals("")){
        String dun = this.txtDUNWarra.getText().trim();
        reg.exportarGarantiaWarraDun(dun);
        javax.swing.JOptionPane.showMessageDialog(this, "Exportación realizada con exito");
        File file = new File("C:/export_aprobacion_garantia_warrant.csv");
        try {
            Desktop.getDesktop().open(file);
        } catch (IOException ex) {
            Logger.getLogger(IngresoGarante.class.getName()).log(Level.SEVERE, null, ex);
        }
        }
    }//GEN-LAST:event_btnExcelWarraActionPerformed

    private void txtFolioWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtFolioWarraActionPerformed
             if (!this.txtFolioWarra.getText().matches("[ 0-9]*")) // expresiones regulares para validar
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
                this.txtFolioWarra.setText("");
            }
    }//GEN-LAST:event_txtFolioWarraActionPerformed

    private void btnBuscarDunImprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarDunImprimirActionPerformed
       
        try{
             aproGaraWarra = reg.buscarPorDUN(this.txtBuscarDunImprimir.getText().trim());
        if (aproGaraWarra.getEstado_warra().equals("Eliminada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Eliminada");
                this.txtBuscarDunImprimir.setText(null);
                DefaultTableModel model = (DefaultTableModel)tbSalidaGarantiaWarrant.getModel();
                model.setNumRows(0);
                model.setColumnCount(0);
            }
        else
        {
            ArrayList<garantiaWarrantsDTO> salida = reg.ListarPorDunWarra(this.txtBuscarDunImprimir.getText().trim());
            if(salida.isEmpty())
            {
                
                this.txtBuscarDunImprimir.setText(null);
                DefaultTableModel model = (DefaultTableModel)tbSalidaGarantiaWarrant.getModel();
                model.setNumRows(0);
                javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
            }
            else
            {
                
                DefaultTableModel model = (DefaultTableModel)tbSalidaGarantiaWarrant.getModel();
                model.setColumnCount(0);
                
                if(model.getColumnCount() < 1)
                {
                   
                    Object[] arr1 ={"Rut: ","Nombre: ", "Calle: ", "Garantía: ", "Número identificatorio Warrant: ",
                        "Número de folio: ", "Monto incial: ", "Creación de la garantía: ", "Sucursal: ",
                        "Tipo producto: ","Fecha último debito: ", "Moneda: ","Fecha última Tasación: ",
                        "Tipo garantía: ","Ingreso de Producto: ","Fecha vencimiento: ","Fecha último revaluo: ",
                        "Fecha último crédito: ","Estado de la garantía: ","Fecha Aprobado/Rechazado: ",
                        "Usuario: " };
                    model.addColumn("Concepto", arr1);
                    
                    for(garantiaWarrantsDTO w: salida)
                {
                    Object[] arr2 ={
                    w.getRut_garante_warra(),
                    w.getNombre_warra() + "  " + w.getApell_paterno_warra() + "  " + w.getApell_materno_warra(),
                    w.getCalle_warra() + "  " + w.getNum_warra(),
                    w.getNom_garantia_warra(),
                    w.getDun_warra(),w.getFolio_warra(),w.getMonto_inicial(),new SimpleDateFormat("dd-MM-yyyy").format(w.getFech_crea_warra()),
                    w.getNom_sucursal_warra(),w.getTipo_prod_warra(),new SimpleDateFormat("dd-MM-yyyy").format(w.getFech_ult_deb_warra()),
                    w.getNom_moneda_warra(),new SimpleDateFormat("dd-MM-yyyy").format(w.getFech_ult_tasa_warra()),w.getTipo_gara_warra(),w.getIngre_prod_warra(),
                    new SimpleDateFormat("dd-MM-yyyy").format(w.getFech_exti_warra()),new SimpleDateFormat("dd-MM-yyyy").format(w.getFech_ult_reval_warra()),new SimpleDateFormat("dd-MM-yyyy").format(w.getFech_ult_cred_warra()),
                    w.getEstado_warra(),new SimpleDateFormat("dd-MM-yyyy").format(w.getFech_crea_warra()),
                    w.getNombre_usuario()
                    };
                     
                    model.addColumn("Contenido",arr2);    
                }
                    
                    Object[] arr3 = {" "," "," "," "," "," "," "," "," "," ",
                                     " "," "," "," "," "," "," "," "," "," "," "};
                    model.addColumn("Observaciones",arr3);
                    
                }
                
               
            }
        }}
        catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnBuscarDunImprimirActionPerformed

    private void btnImprimirWarrantActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirWarrantActionPerformed
        try {
            
        int fila= 0;
  
        List Resultados = new ArrayList();
        ComprobanteGeneralDTO tipo;
        Resultados.clear();
        
        for(fila = 0; fila< tbSalidaGarantiaWarrant.getRowCount(); fila++)
        {
            
           tipo = new ComprobanteGeneralDTO(String.valueOf(tbSalidaGarantiaWarrant.getValueAt(fila, 0)),
                    " " + String.valueOf(tbSalidaGarantiaWarrant.getValueAt(fila, 1)), " " + String.valueOf(tbSalidaGarantiaWarrant.getValueAt(fila, 2))  + "\n");
           Resultados.add(tipo);

        }
        
            String reportSource = "C:\\Users\\SoftGroup\\Documents\\NetBeansProjects\\trunk\\AppGarantias\\build\\classes\\Reporte\\ComprobanteGeneralGarantias.jrxml";

            JasperReport jr = JasperCompileManager.compileReport(reportSource);
            
            
            JFrame reporte = new JFrame();
            reporte.setSize(900, 700);
            reporte.setLocationRelativeTo(null);
            reporte.setTitle("IMPRESIÓN");
            String fechaImpresion = String.valueOf(Fechas.FechaSistema());
            
            Map<String, Object> map = new HashMap<String, Object>();
            
            map.put("Titulo", "Sistema Gestión de Garantías Bancarias");
            map.put("fecha", fechaImpresion);
            map.put("nombreBanco", "Banco xxxxxx");
            map.put("subtitulo", "Comprobante Aprobación Warrant");
            map.put("timbre", "Timbre");
            map.put("fechaUsuario","Fecha");
            map.put("firma","Firma");
            
            
            JRBeanCollectionDataSource coleccion = new JRBeanCollectionDataSource(Resultados);
            JasperPrint jp = JasperFillManager.fillReport(jr, map, coleccion);
            JRViewer jv = new JRViewer(jp);
            reporte.getContentPane().add(jv);
            reporte.setVisible(true);
            
            
            
        } catch (JRException e) {
            e.printStackTrace();
            Logger.getLogger(AprobacionGarantiaWarrant.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_btnImprimirWarrantActionPerformed

    private void btnMenuPrincipalWarrantActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincipalWarrantActionPerformed
         MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        AprobacionGarantiaWarrant.this.dispose();
    }//GEN-LAST:event_btnMenuPrincipalWarrantActionPerformed

    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /*
//         * Set the Nimbus look and feel
//         */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /*
//         * If Nimbus (introduced in Java SE 6) is not available, stay with the
//         * default look and feel. For details see
//         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    breAprobacionGarantiaWarrant            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(AprobacionGarantiaWarrant2.class.getName()).log(javAprobacionGarantiaWarrantE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(AprobacionGarantiaWarrant2.class.getName()).log(javAprobacionGarantiaWarrantE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(AprobacionGarantiaWarrant2.class.getName()).log(java.util.logging.Level.AprobacionGarantiaWarrant   } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(AprobacionGarantiaWarrant2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /*
//         * Create and display the AprobacionGarantiaWarrant   java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new AprobacionGarantiaWarrant2().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAceptar;
    private javax.swing.JButton btnBuscarDUNWarra;
    private javax.swing.JButton btnBuscarDunImprimir;
    private javax.swing.JButton btnBuscarFolioWarra;
    private javax.swing.JButton btnExaminarWarra;
    private javax.swing.JButton btnExcelWarra;
    private javax.swing.JButton btnImprimirWarrant;
    private javax.swing.JButton btnMenuPWarra;
    private javax.swing.JButton btnMenuPrincipalWarrant;
    private javax.swing.JButton btnMenuWarra;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JCheckBox chkDUNWarra;
    private javax.swing.JCheckBox chkFolioWarra;
    private javax.swing.JComboBox cmbEstadoAprobWarra;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JLabel lblArchivo;
    private javax.swing.JLabel lblDescripcion;
    private javax.swing.JLabel lblDescripcion2;
    private javax.swing.JLabel lblEstrado1;
    private javax.swing.JPanel pnlCreacionGaraWarra;
    private javax.swing.JPanel pnlDatosPersoGara;
    private javax.swing.JPanel pnlDescripGarantia;
    private javax.swing.JPanel pnlDescripGarantia2;
    private javax.swing.JPanel pnlEstadoGarantia1;
    private javax.swing.JPanel pnlIngreseRutGarante;
    private javax.swing.JPanel pnlIngreseRutGarante1;
    private javax.swing.JTable tbSalidaGarantiaWarrant;
    private javax.swing.JTextField txtApellMatWarra;
    private javax.swing.JTextField txtApellPatWarra;
    private javax.swing.JTextField txtBuscarDunImprimir;
    private javax.swing.JTextField txtDUNWarra;
    private javax.swing.JTextArea txtDescripcionWarra;
    private javax.swing.JTextField txtEstadoActualWarrant;
    private javax.swing.JTextField txtFechCreaWarra;
    private javax.swing.JTextField txtFechExtWarra;
    private javax.swing.JTextField txtFechUltCredWarra;
    private javax.swing.JTextField txtFechUltDebWarra;
    private javax.swing.JTextField txtFechUltRevWarra;
    private javax.swing.JTextField txtFechUltTasWarrant;
    private javax.swing.JTextField txtFolioWarra;
    private javax.swing.JTextField txtGtiaWarra;
    private javax.swing.JTextField txtMonedaWarra;
    private javax.swing.JTextField txtMontoInicialWarrant;
    private javax.swing.JTextField txtNombreWarra;
    private javax.swing.JTextArea txtOtroComentario1AprobWarr1;
    private javax.swing.JTextField txtProductoWarra;
    private javax.swing.JTextField txtRutWarra;
    private javax.swing.JTextField txtSucursalWarra;
    private javax.swing.JTextField txtTipoProdWarra;
    // End of variables declaration//GEN-END:variables

    

    private void limpiar() {
                this.txtRutWarra.setText(null);
                this.txtApellMatWarra.setText(null);
                this.txtApellPatWarra.setText(null);
                this.txtNombreWarra.setText(null);
                this.txtSucursalWarra.setText(null);
                this.txtTipoProdWarra.setText(null);
                this.txtFechCreaWarra.setText(null);
                this.txtFechUltDebWarra.setText(null);
                this.txtMonedaWarra.setText(null);
                this.txtFechUltTasWarrant.setText(null);
                this.txtTipoProdWarra.setText(null);
                this.txtProductoWarra.setText(null);
                this.txtFechExtWarra.setText(null);
                this.txtFechUltRevWarra.setText(null);
                this.txtFechUltCredWarra.setText(null);
                this.txtGtiaWarra.setText(null);
                this.cmbEstadoAprobWarra.setSelectedItem("(SELECCIONE)");
                this.txtOtroComentario1AprobWarr1.setText(null);
                this.txtMontoInicialWarrant.setText(null);
                this.txtEstadoActualWarrant.setText(null);
    }
    
    private void cambio()
    {
        if(aproGaraWarra.getEstado_warra().equals("Ingresada") || aproGaraWarra.getEstado_warra().equals("Modificada"))
                {
                    this.cmbEstadoAprobWarra.setSelectedItem("(SELECCIONE)");
                }
    }
}
